package org.hxyjs.dto;



/**
 * 消息的枚举 就是把所有的消息可能都列出来的
 */
//查询全部学生为例  查询成功   查询失败  当前没有数据
public enum MessageEnum {
    GETUSERSUCCESS(200,Messages.GETUSERSUCCESS),
    GETUSERFAIL(4001,Messages.GETUSERFAIL),
    ADDUSERSUCCESS(200,Messages.ADDUSERSUCCESS),
    ADDUSERFAIL(4002,Messages.ADDUSERFAIL),

    DELETEUSERSUCCESS(200,Messages.DELETEUSERSUCCESS),
    DELETEUSERFAIL(4001,Messages.DELETEUSERFAIL),
    UPDATEUSERSUCCESS(200,Messages.UPDATEUSERSUCCESS),
    UPDATEUSERFAIL(4002,Messages.UPDATEUSERFAIL),
    //用户
    GETMEMBERTYPESUCCESS(200,Messages.GETMEMBERTYPESUCCESS),
    GETMEMBERTYPEFAIL(4001,Messages.GETMEMBERTYPEFAIL),
    ADDMEMBERTYPESUCCESS(200,Messages.ADDMEMBERTYPESUCCESS),
    ADDMEMBERTYPEFAIL(4002,Messages.ADDMEMBERTYPEFAIL),

    DELETEMEMBERTYPESUCCESS(200,Messages.DELETEMEMBERTYPESUCCESS),
    DELETEMEMBERTYPEFAIL(4001,Messages.DELETEMEMBERTYPEFAIL),
    UPDATEMEMBERTYPESUCCESS(200,Messages.UPDATEMEMBERTYPESUCCESS),
    UPDATEMEMBERTYPEFAIL(4002,Messages.UPDATEMEMBERTYPEFAIL),
    //会员类型
    GETUSERSCHEMERECORDSUCCESS(200,Messages.GETUSERSCHEMERECORDSUCCESS),
    GETUSERSCHEMERECORDFAIL(4001,Messages.GETUSERSCHEMERECORDFAIL),
    ADDUSERSCHEMERECORDSUCCESS(200,Messages.ADDUSERSCHEMERECORDSUCCESS),
    ADDUSERSCHEMERECORDFAIL(4002,Messages.ADDUSERSCHEMERECORDFAIL),

    DELETEUSERSCHEMERECORDSUCCESS(200,Messages.DELETEUSERSCHEMERECORDSUCCESS),
    DELETEUSERSCHEMERECORDFAIL(4001,Messages.DELETEUSERSCHEMERECORDFAIL),
    UPDATEUSERSCHEMERECORDSUCCESS(200,Messages.UPDATEUSERSCHEMERECORDSUCCESS),
    UPDATEUSERSCHEMERECORDFAIL(4002,Messages.UPDATEUSERSCHEMERECORDFAIL),
    //积分
    GETINTEGRALSUCCESS(200,Messages.GETINTEGRALSUCCESS),
    GETINTEGRALFAIL(4001,Messages.GETINTEGRALFAIL),
    ADDINTEGRALSUCCESS(200,Messages.ADDINTEGRALSUCCESS),
    ADDINTEGRALFAIL(4002,Messages.ADDINTEGRALFAIL),

    DELETEINTEGRALSUCCESS(200,Messages.DELETEINTEGRALSUCCESS),
    DELETEINTEGRALFAIL(4001,Messages.DELETEINTEGRALFAIL),
    UPDATEINTEGRALSUCCESS(200,Messages.UPDATEINTEGRALSUCCESS),
    UPDATEINTEGRALFAIL(4002,Messages.UPDATEINTEGRALFAIL);



    private Integer code;//状态码
    private String message;




    MessageEnum() {
    }

    public Integer getCode() {
        return code;
    }

    MessageEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
